package ${packageName}.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import java.util.List;

public interface ${entry.entityName?cap_first}Service {

  ${entry.entityName?cap_first}DTO getById(Long id,boolean nullThrow);

  ${entry.entityName?cap_first}DTO add(${entry.entityName?cap_first}AddForm addForm);

  ${entry.entityName?cap_first}DTO update(${entry.entityName?cap_first}UpdateForm updateForm);

  ${entry.entityName?cap_first}DTO save(${entry.entityName?cap_first}SaveForm saveForm);

  List<${entry.entityName?cap_first}DTO> listAll();

  IPage<${entry.entityName?cap_first}DTO> page(${entry.entityName?cap_first}PageForm pageForm);

  List<${entry.entityName?cap_first}DTO> list(${entry.entityName?cap_first}ListForm listForm);

  Boolean delete(Long id);
}
